{% extends "base.html" %}

{% block class %}books{% endblock %}

{% block main %}
<dl>
    <dt>buy books</dt>
    <dd> 
    {% for book in user.buy_book_set.all %}
        <a href="/books/update/{{ book.id }}/">{{ book.title }}</a>
        <a href="/books/delete/{{ book.id }}/">delete</a>
    {% endfor %}
    </dd>
    <dt>hold books</dt>
    <dd> 
    {% for book in user.hold_book_set.all %}
        <a href="/books/update/{{ book.id }}/">{{ book.title }}</a>
        <a href="/books/delete/{{ book.id }}/">delete</a>
    {% endfor %}
    </dd>
    <a href="/books/create/">new</a>
</dl>
{% endblock %}

